﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.XMLConfigModel.OptimizeConfigModel
{
    /// <summary>
    /// 优选要素类型
    /// </summary>
    [Serializable]
    [XmlRootAttribute("xmlfacttype", IsNullable = false)]
    public class OptimizeFactXmlType
    {
        /// <summary>
        /// 要素类型
        /// </summary>
        [XmlAttribute("type")]
        public string Facttype { get; set; }
        /// <summary>
        /// xmlpath路径
        /// </summary>
        [XmlAttribute("xpath")]
        public string Xmlpath { get; set; }

        /// <summary>
        /// 内容备注
        /// </summary>
        [XmlAttribute("remark")]
        public string FactRemark { get; set; }

        private List<OptimizeFactXmlLable> _optimizeFactXmlLables = new List<OptimizeFactXmlLable>();
        /// <summary>
        /// 优选要素节点配置
        /// </summary>
        [XmlElementAttribute("xmllabel")]
        public List<OptimizeFactXmlLable> OptimizeFactXmls
        {
            get { return _optimizeFactXmlLables; }
            set { _optimizeFactXmlLables = value; }
        }

    }
}
